/*
 * @Author: 吴竹叶 2107206923@qq.com
 * @Date: 2023-11-06 10:54:56
 * @LastEditors: 吴竹叶 2107206923@qq.com
 * @LastEditTime: 2023-11-06 17:09:53
 * @FilePath: \BZ_JT_AnQuanHuanBaoGuanLiApp\src\api\energySources.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
import qs from 'qs'
/* ********************************* 重点设备管理 ************************************* */
/**
 * 重点设备管理列表
 * @params {*}
 * @return {*}
 */
export const ImportDeviceList = (data) => {
  return request({
    url: '/admin/ny/NyImportDeviceController/getImportDeviceList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 重点设备管理详情
 * @params {*}
 * @return {*}
 */
export const importDeviceDetail = (data) => {
  return request({
    url: '/admin/ny/NyImportDeviceController/importDeviceDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/* ********************************* 能源体系管理 ************************************* */
/**
 * 能源体系管理列表
 * @params {*}
 * @return {*}
 */
export const energyCertifyList = (data) => {
  return request({
    url: '/admin/ny/EnergyCertify/energyCertifyList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 能源体系管理详情
 * @params {*}
 * @return {*}
 */
export const energyCertifyById = (data) => {
  return request({
    url: '/admin/ny/EnergyCertify/energyCertifyById',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 清洁生产列表
 * @params {*}
 * @return {*}
 */
export const cleanerProductionList = (data) => {
  return request({
    url: '/admin/ny/EnergyCertify/cleanerProductionList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 清洁生产详情
 * @params {*}
 * @return {*}
 */
export const cleanerProductionByID = (data) => {
  return request({
    url: '/admin/ny/EnergyCertify/cleanerProductionByID',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 绿色工厂列表
 * @params {*}
 * @return {*}
 */
export const greenFactoryList = (data) => {
  return request({
    url: '/admin/ny/EnergyCertify/greenFactoryList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
// -------------------------------------------------- 节能诊断及评估 -------------------------------------------------- //

/**
 * 节能诊断及评估-数据列表(集团,企业,第三方)
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const energyEvaluateList = (data) => {
  return request({
    url: '/admin/ny/EnergyEvaluate/energyEvaluateList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 节能诊断及评估列表(汇总)
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const energyEvaluateSummaryList = (data) => {
  return request({
    url: '/admin/ny/EnergyEvaluate/energyEvaluateSummaryList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 节能诊断及评估详细
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const energyEvaluateById = (data) => {
  return request({
    url: '/admin/ny/EnergyEvaluate/energyEvaluateById',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 能源项目管理-列表数据
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const energyProjectsList = (data) => {
  return request({
    url: '/admin/ny/EnergyEvaluate/energyProjectsList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 能源项目管理-项目详细
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const energyProjectsById = (data) => {
  return request({
    url: '/admin/ny/EnergyEvaluate/energyProjectsById',
    method: 'POST',
    data: qs.stringify(data)
  })
}
